﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using QLCongNo.NCC;
using QLCongNo.XuatHangform;

namespace QLCongNo
{
    public partial class Main : DevExpress.XtraEditors.XtraForm
    {
        public Main()
        {
            InitializeComponent();
        }

        private void Main_Load(object sender, EventArgs e)
        {
            DSKhachHangUser ds = new DSKhachHangUser();
            ds.Dock = DockStyle.Fill;
            Panel_content.Controls.Add(ds);
        }

        private void barButtonItem8_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            foreach (Control ctrl in Panel_content.Controls)
            {
                ctrl.Dispose();
            }
            DSNhaCungCap ds = new DSNhaCungCap();
            ds.Dock = DockStyle.Fill;
            Panel_content.Controls.Add(ds);
        }

        private void btn_KhachHang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            foreach (Control ctrl in Panel_content.Controls)
            {
                ctrl.Dispose();
            }
            DSKhachHangUser ds = new DSKhachHangUser();
            ds.Dock = DockStyle.Fill;
            Panel_content.Controls.Add(ds);
        }

        private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

        }

        private void btnXuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

            foreach (Control ctrl in Panel_content.Controls)
            {
                ctrl.Dispose();
            }
            DSPhieuXuat ds = new DSPhieuXuat();
            ds.Dock = DockStyle.Fill;
            Panel_content.Controls.Add(ds);
        }
    }
}